package cn.aop;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

@Component
@Aspect
public class FirstAop {

    //    @Before("execution(public * *(..))")
    public void testaop() {
        System.out.println("-------------AOPing......");
    }

    //    @Before("within(cn.edu.dgut.sai.config.*)")
    public void testaop1() {
        System.out.println("-------------AOPing......");
    }

    //    @Before("target(cn.edu.dgut.sai.config.TransferServicesImpl2)")
    public void testaop2() {
        System.out.println("-------------AOPing......");
    }

    @Before("target(cn.evnet.EventConfig)")
    public void testaop3() {
        System.out.println("-------------AOPing......");
    }
}

